package com.example.gpssystem.model;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;

@Data
@Document(collection = "addresses")
public class Address {
    @Id
    private String id;
    private String userId;
    @NotBlank
    private String address;
    private LocalDateTime createTime;
    private boolean isDefault;
}